export default {
  data () {
    return {
      tableData: [],
      // 分页
      pagination: {
        current: 1, // 当前页
        size: 20, // 分页大小
        sizes: [10, 20, 50, 100], // 分页大小选项
        total: 0 // 总条数
      },
      tableLoading: false
    }
  },
  methods: {
    // 分页相关
    pageChange (current) {
      // console.log(current)
      this.pagination.current = current
      this.getTableData()
    },
    sizeChange (size) {
      // console.log(size)
      this.pagination.current = 1
      this.pagination.size = size
      this.getTableData()
    }
  }
}
